package br.org.etec.dotcao.model;

import br.org.etec.dotcao.exception.InvalidCredentialException;

public interface UserRepository extends Repository<User>{
	
	User authenticate(String username, String password) throws InvalidCredentialException;
	
	User authenticate(OauthInfo oauth) throws InvalidCredentialException;
	
	User getByEmail(String email);

}
